import { defineAmisPlugin,getBaseFormItem, getInputTpl } from '../../base/util';
import Attachment from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component: Attachment,
        options: getBaseFormItem({
            type: 'attachment', order: -6999, name: '附件', icon: 'FileSearchOutlined',xtype:'Attachment',
            valueLabel: true,
            tpls: [
                getInputTpl('fileTypeCode', { label: '对应附件表' }),
            ]
        })
    };
});
